home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 007 / ebl308a.arc / EDITSET.BAT < prev    next >
DOS Batch File  |  1987-08-05  |  1KB  |  43 lines

  1. bat /p * Edit DOS Environment settings...
  2. *
  3. *    (c) Copyright 1986 by Seaware Corp.
  4. *
  5.     if %1/ = / goto -tell
  6.     /U %1 = %1 |/U-
  7.     trace.off
  8.     shell set >editset$.dat
  9.     <editset$.dat
  10.  
  11. -read.line
  12.     read.parsed %0
  13.     if %0 ? %1= = 1 then goto -found.var.match
  14.     if %0 <> ^Z then goto -read.line
  15.     <
  16.     type Environment variable ''' %1 ''' was not found!
  17.     type Current settings are: |type
  18.     shell type editset$.dat
  19.     shell del  editset$.dat
  20.     exit
  21.  
  22. -found.var.match
  23.     <
  24.     stack Set %0;
  25.     shell del  editset$.dat
  26.     exit
  27.  
  28. -tell    begtype
  29.  
  30. Usage: EDITSET dos_setting
  31.  
  32.        Where "dos_setting" is one of the current environment variables. This
  33. batch file will allow any of the DOS environment variables to be edited and
  34. changed. Typical variables are PATH, PROMPT, and COMSPEC. The batch file
  35. will put the current setting on the DOS command line prompt. The built in
  36. editor on the DOS command line, or other DOS prompt editor extensions like
  37. DOSEDIT may be used to then edit the setting of the environment variable.
  38.  
  39. It is recommended, but not required, that this program be used with DOSEDIT,
  40. or another DOS command line editor.
  41.  
  42. end
  43.